import request from "@/utils/request";

// 查询会员卡发放记录列表
export function listCardSendRecord(query) {
  return request({
    url: "/service/cardSendRecord/list",
    method: "get",
    params: query,
    headers: {
      isToken: false,
    },
  });
}

// 查询会员卡发放记录详细
export function getCardSendRecord(id) {
  return request({
    url: "/service/cardSendRecord/" + id,
    method: "get",
  });
}

// 新增会员卡发放记录
export function addCardSendRecord(data) {
  return request({
    url: "/service/cardSendRecord",
    method: "post",
    data: data,
  });
}

// 修改会员卡发放记录
export function updateCardSendRecord(data) {
  return request({
    url: "/service/cardSendRecord",
    method: "put",
    data: data,
  });
}

// 删除会员卡发放记录
export function delCardSendRecord(id) {
  return request({
    url: "/service/cardSendRecord/" + id,
    method: "delete",
  });
}
